package com.example.administrator.matriximage;

import android.support.v7.app.AppCompatActivity;

import com.example.administrator.matriximage.uievent.viewmsg.ViewMsg;

import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;

public class BaseActivity extends AppCompatActivity {

    @Subscribe(threadMode = ThreadMode.MAIN)
    public void viewMsg(ViewMsg viewMsg)
    {

    }


    @Override
    protected void onStart() {
        super.onStart();
        EventBus.getDefault().register(this);
    }

    @Override
    protected void onStop() {
        super.onStop();
        EventBus.getDefault().unregister(this);
    }
}
